import Vue from 'vue'
import App from './App.vue'
import router from './route'
import MuseUi from 'muse-ui'
import axiosDeal from './modules/axios_deal'
import Toast from 'muse-ui-toast'
import Loading from 'muse-ui-loading'


import 'muse-ui/dist/muse-ui.css'
import 'muse-ui-loading/dist/muse-ui-loading.css'

import './source/init/reset.css'
import './source/init/fontsize_auto'
import './source/mobile_1px.css'
import './source/material-icons.css'

Vue.prototype.$util = axiosDeal.util;
const ToastConfig = {
    position: 'top',               // 弹出的位置
    time: 2000,                       // 显示的时长
    closeIcon: 'close',               // 关闭的图标
    close: true,                      // 是否显示关闭按钮
    successIcon: 'check_circle',      // 成功信息图标
    infoIcon: 'info',                 // 信息信息图标
    warningIcon: 'priority_high',     // 提醒信息图标
    errorIcon: 'warning'
};

Vue.use(Loading);
Vue.use(Toast,ToastConfig);
Vue.use(MuseUi);
Vue.config.productionTip = false;

new Vue({
    router,
    render: h => h(App)
}).$mount('#app');